package com.woniuxy01;

/**
 * @author 作者
 * @create 2025-05-27 9:27
 */
public class Test03 {
    public static void main(String[] args) {
        int a=1,b=2;
        System.out.println("a="+a+",b="+b);
        a=b;
        b=5;
        System.out.println("a="+a+",b="+b);

        int[] c={1,2,3,4,5};
        int[] d={6,7,8,9,10};
        System.out.println("数组c");
        for(int i=0;i<c.length;i++){
            System.out.print(c[i]+"\t");
        }
        System.out.println();
        System.out.println("数组d");
        for(int i=0;i<d.length;i++){
            System.out.print(d[i]+"\t");
        }
        System.out.println();
        c=d;
        d[0]=d[0]+10;
        System.out.println("数组c");
        for(int i=0;i<c.length;i++){
            System.out.print(c[i]+"\t");
        }
        System.out.println();
        System.out.println("数组d");
        for(int i=0;i<d.length;i++){
            System.out.print(d[i]+"\t");
        }
        System.out.println();

    }
}
